package com.example.travel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tab_route_img")
public class RouteImg {

    //主键必须要用注解@TableId防止映射不到字段
    @TableId(value = "rgid",type = IdType.AUTO)
    private Integer rgId;

    private Integer rid;

    @TableField("bigPic")
    private String bigPic;

    //注：驼峰命名时要备注表名，防止转换为_
    @TableField("smallPic")
    private String smallPic;

}
